package com.woniuxy.configuration;
/*
 * @author 幸琦林
 *
 */


import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;

public class EasyFormAuthenticationFilter extends FormAuthenticationFilter {

    @Override
    protected EasyTypeToken createToken(String username, String password, boolean rememberMe, String host) {
        //增加免密登录功能，使用自定义token
        return new EasyTypeToken(username, password, LoginType.PASSWORD, rememberMe, host);
    }
}